package com.acme.bankapp.domain.bank;

public class SavingAccount extends AbstractAccount {
	public SavingAccount(final double balance) {
		super(balance);
	}

	public void withdraw(double amount) {
		if (amount > 0 && amount <= balance) {
			balance -= amount;
		}
	}

	public double maximumAmountToWithdraw() {
		return balance;
	}
}
